package com.hmall.mapper;

import com.hmall.model.MallComment;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface MallCommentMapper extends MyMapper<MallComment> {

    List<MallComment> listByProductId(@Param("productId") int productId);

    List<MallComment> listCommentByUser(@Param("userId") Integer userId);

    void myInsert(@Param("mallComment") MallComment mallComment);

    MallComment findByOrderItemId(@Param("orderItemId") Integer orderItemId);
}